package org.jeecg.modules.business.service;

import cn.hutool.core.bean.BeanUtil;
import org.jeecg.common.Enum.CouponEnums;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.business.dto.CouponsGenerateDto;
import org.jeecg.modules.business.dto.ProvideCouponsUsedDto;
import org.jeecg.modules.business.entity.BusMarketCouponsUsed;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.rooms.DTO.CesRoomLayoutMemberInfoPriceDto;
import org.jeecg.modules.rooms.DTO.CesRoomLayoutPriceDto;
import org.jeecg.modules.rooms.entity.CesRoomLayoutMemberPrice;
import org.jeecg.modules.rooms.entity.CesRoomLayoutPrice;
import org.jeecg.modules.rooms.mapper.CesRoomLayoutPriceMapper;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 免房券领取使用表
 * @Author: jeecg-boot
 * @Date:   2023-03-09
 * @Version: V1.0
 */
public interface IBusMarketCouponsUsedService extends IService<BusMarketCouponsUsed> {
    public Result generate(CouponsGenerateDto dto);

    /**
     * 发放免房券给非会员
     * @param dto
     * @return
     */
    public Result gainCouponsUsedToNoMember(ProvideCouponsUsedDto dto);

    /**
     * 发放免房券给会员
     * @param dto
     * @return
     */
    public Result gainCouponsUsedToMember(ProvideCouponsUsedDto dto);
}
